// 块语句中使用var
const str = 'world';

function play () {
  if (str) {
    var name = 'cart';
  }
  console.log(name);
}

play();
